package de.ifi.lmu.snitzelhunt.basics;


/**
 * Class for saving a ImageTask inherits Task
 * 
 * @author jaschkowitz
 * 
 */
public class ImageTask extends Task {

	// the Action the participant has to do
	private String action;
	//the global ID of the image on the database Server
	private long globalImgID;

	public long getGlobalImgID() {
		return globalImgID;
	}

	public void setGlobalImgID(long globalImgID) {
		this.globalImgID = globalImgID;
	}

	/**
	 * simple constructor for setting all fields
	 * 
	 * @param latitude
	 * @param longitude
	 * @param action
	 */
	public ImageTask(double latitude, double longitude, String action,
			long globalImgID) {
		super(latitude, longitude);
		this.setAction(action);
		this.globalImgID = globalImgID;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Override
	public String getDetail() {
		return action;
	}

	@Override
	public String toString() {
		return getClass().getName() + " [action=" + action + " globalImgID="
				+ globalImgID + " ,latitude=" + latitude + "longituide, "
				+ longitude + "]";
	}
}
